//
// Created by jack on 2021/2/4.
//

#ifndef WEILACSDK_WEILAPB_CRYPTUTIL_H
#define WEILACSDK_WEILAPB_CRYPTUTIL_H

extern PB_INT32 weilapb_decryptText(PB_CHAR*   pCryptedText,
                                    PB_UINT32  inputSize,
                                    PB_CHAR**  pDecryptedText,
                                    PB_UINT32* pDecryptedTextSize);
extern PB_INT32
    weilapb_encryptText(PB_CHAR* pText, PB_UINT32 inputSize, PB_CHAR** pEncryptedText, PB_UINT32* pEncryptedTextSize);


extern PB_INT32 weilapb_encryptText_nomem(PB_CHAR *pText, PB_CHAR *pOutText, PB_UINT32 maxBufferSize);
#endif  // WEILACSDK_WEILAPB_CRYPTUTIL_H
